package com.wtwd.device.model;


import com.wtwd.device.constant.SeparatorConstant;

import java.io.Serializable;

public class BloodOxygenWarning implements Serializable {

    /**
     * 低血氧
     */
    private int minBloodOxygen;

    /**
     * 高血氧
     */
    private int maxBloodOxygen;


    public int getMinBloodOxygen() {
        return minBloodOxygen;
    }

    public void setMinBloodOxygen(int minBloodOxygen) {
        this.minBloodOxygen = minBloodOxygen;
    }

    public int getMaxBloodOxygen() {
        return maxBloodOxygen;
    }

    public void setMaxBloodOxygen(int maxBloodOxygen) {
        this.maxBloodOxygen = maxBloodOxygen;
    }

    public String serialization(){
        return  minBloodOxygen + SeparatorConstant.CMD_BODY_SEGMENTATION + maxBloodOxygen;
    }

    @Override
    public String toString() {
        return "BloodOxygenWarning{" +
                "minBloodOxygen='" + minBloodOxygen + '\'' +
                ", maxBloodOxygen='" + maxBloodOxygen + '\'' +
                '}';
    }
}
